// @ts-ignore 显式导入React, 勿删
import React from 'react';
import { Input as OriginalInput } from 'antd';
import { withDivWrap } from '../../utils/hoc';

const {
  Group: OriginalGroup,
  TextArea: OriginalTextArea,
  Password: OriginalPassword,
  Search: OriginalSearch,
} = OriginalInput;

console.log('OriginalInput', OriginalInput)

const Input = withDivWrap(OriginalInput);

(Input as any).Group = OriginalGroup;
(Input as any).TextArea = withDivWrap(OriginalTextArea);
(Input as any).Password = withDivWrap(OriginalPassword);
(Input as any).Search = withDivWrap(OriginalSearch);

export default Input;